﻿using Abp.Domain.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace HCD.DomainServices.Cloud
{
    public interface ISMSManager : IDomainService
    {
        /// <summary>
        /// 发送短信验证码
        /// </summary>
        /// <param name="PhoneNumber">手机号</param>
        /// <param name="flag">再次发送标记：0忽略，1允许有效期内再次发送</param>
        /// <returns></returns>
        Task<string> SendVerificationCode(string PhoneNumber, int flag = 0);
        /// <summary>
        /// 验证
        /// </summary>
        /// <param name="PhoneNumber">手机号</param>
        /// <param name="VerificationCode">验证码</param>
        Task CheckVerificationCode(string PhoneNumber, string VerificationCode);
    }
}
